<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE HTML>
<html>
 <head>
  <title>后台管理系统</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="/Public/admin/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="/Public/admin/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
   <link href="/Public/admin/assets/css/main-min.css" rel="stylesheet" type="text/css" />
 </head>
 <body>

  <div class="header">
    
      <div class="dl-title">
       <!--<img src="/chinapost/Public/assets/img/top.png">-->
      </div>

    <div class="dl-log">欢迎您，<span class="dl-log-user"><?php echo ($_SESSION['admin']); ?></span><a href="<?php echo U('admin/public/logout');?>" title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
  </div>
   <div class="content">
    <div class="dl-main-nav">
      <div class="dl-inform"><div class="dl-inform-title"><s class="dl-inform-icon dl-up"></s></div></div>
      <ul id="J_Nav"  class="nav-list ks-clear">
      <?php if(is_array($menu)): $k = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k; if($k == 1): ?><li class="nav-item dl-selected"><div class="nav-item-inner nav-home"><?php echo ($vo["menu_name"]); ?></div></li>
        		<?php else: ?>
        				<li class="nav-item dl-selected"><div class="nav-item-inner nav-order"><?php echo ($vo["menu_name"]); ?></div></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
      </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
   </div>
  <script type="text/javascript" src="/Public/admin/assets/js/jquery-1.8.1.min.js"></script>
  <script type="text/javascript" src="/Public/admin/assets/js/bui-min.js"></script>
  <script type="text/javascript" src="/Public/admin/assets/js/common/main-min.js"></script>
  <script type="text/javascript" src="/Public/admin/assets/js/config-min.js"></script>
       <script type="text/javascript" src="/Public/Plugins/jquery/jquery-ui.js"></script>
  
  <script>
    BUI.use('common/main',function(){
      var config =  [
                     <?php if(is_array($menu)): $k = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>{id:'<?php echo ($k); ?>',<?php if($k == 1): ?>homePage:'<?php echo ($k); ?>1',<?php else: endif; ?>menu:[{text:'<?php echo ($vo["menu_name"]); ?>',
                    	 items:[
                    	        <?php if(is_array($vo["item"])): $k1 = 0; $__LIST__ = $vo["item"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$no): $mod = ($k1 % 2 );++$k1;?>{id:'<?php echo ($k); echo ($k1); ?>',text:'<?php echo ($no["menu_name"]); ?>',href:'<?php echo U($no[menu_url]);?>'},<?php endforeach; endif; else: echo "" ;endif; ?>
                    	        ]}]}
                     <?php if($k == count($vo)): else: ?>,<?php endif; endforeach; endif; else: echo "" ;endif; ?>
                   ];
      new PageUtil.MainPage({
        modulesConfig : config
      });
    });
  </script>
 </body>
</html>